<%@ page contentType="text/html; charset=UTF-8" language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp" %>

<form:form method="post" modelAttribute="AgricultureAndFoodForm" enctype="multipart/form-data" >
	<table style="width:800px;border:1px solid #D2D9E7;"> 
		<tr class="showField" style="display:none">
			<td colspan="2" style="text-align: center;height:80px;border-bottom:2px solid #D2D9E7;">
				<span class="button" style="width:80px;" onclick="_continue();">新增下一筆</span>
			</td> 
		</tr>						
		<tr class="trContent">
			<td style="width:20%;text-align: right;padding-right:15px;">資料編號</td> 
			<td>
				<span style="color:green;letter-spacing: 4px;padding-left:10px;" id="Span_Rec_No">編號尚未產生</span>
			</td> 
		</tr>
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">
				<%-- <span style="color:red;font-weight: 600">＊</span> --%>
				<img src="${appPath }/resource/image/1319013350_star_red.png" width="14" height="14" title="欄位必填"/>				
				原文標題
			</td> 
			<td style="padding-left: 10px;">
				<form:textarea path="title_o" cssClass="bar_1 editField" cssStyle="width:600px;" rows="5" validate="required" onblur="comparison();"/>
				<span id="show_title_o" class="showField"></span>
			</td> 
		</tr>
		<!-- 
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">中譯標題</td> 
			<td style="padding-left: 10px;">
				<form:textarea path="title_c" cssClass="bar_1 editField" cssStyle="width:400px;" rows="5"/>
				<span id="show_title_c" class="showField"></span>
			</td> 
		</tr>
	 	-->
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">
				<%-- <span style="color:red;font-weight: 600">＊</span> --%>
				<img src="${appPath }/resource/image/1319013350_star_red.png" width="14" height="14" title="欄位必填"/>
				作者
			</td> 
			<td style="padding-left: 10px;">
				<form:textarea path="author" cssClass="bar_1 editField" cssStyle="width:600px;" rows="5" validate="required" onblur="comparison();"/>
				<span id="show_author" class="showField"></span>
			</td> 
		</tr>
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">作者服務機構</td> 
			<td style="padding-left: 10px;">
				<form:textarea path="affiliation" cssClass="bar_1 editField" cssStyle="width:600px;" rows="5"/>
				<span id="show_affiliation" class="showField"></span>
			</td> 
		</tr>
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">出版機構</td> 
			<td style="padding-left: 10px;">
				<form:textarea path="publisher" cssClass="bar_1 editField" cssStyle="width:600px;" rows="5"/>
				<span id="show_publisher" class="showField"></span>
			</td> 
		</tr>
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">期刊名稱</td> 
			<td style="padding-left: 10px;">
				<form:textarea path="journal" cssClass="bar_1 editField" cssStyle="width:600px;" rows="5"/>
				<span id="show_journal" class="showField"></span>
			</td> 
		</tr>
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">卷期頁碼</td> 
			<td style="padding-left: 10px;">
				<form:input path="vol_page" cssClass="bar_1 editField" cssStyle="width:600px;" />
				<span id="show_vol_page" class="showField"></span>
			</td> 
		</tr>
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">
				<%-- <span style="color:red;font-weight: 600">＊</span> --%>
				<img src="${appPath }/resource/image/1319013350_star_red.png" width="14" height="14" title="欄位必填"/>
				出版年
			</td> 
			<td style="padding-left: 10px;">
				<form:select path="year" cssStyle="width:120px;" cssClass="editField bar_1" validate="required">
					<form:option value="0" label="--請選擇--" />
					<form:option value="1" label="不明" />	
					<c:forEach var="year" begin="1981" end="2012" varStatus="s">
						<form:option value="${year }" label="${year }" />									
					</c:forEach>
				</form:select>
				<span id="show_year" class="showField"></span>
			</td> 
		</tr>
			
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">
				<%-- <span style="color:red;font-weight: 600">＊</span> --%>
				<img src="${appPath }/resource/image/1319013350_star_red.png" width="14" height="14" title="欄位必填"/>
				語文
			</td> 
			<td style="padding-left: 10px;">
				<form:select path="language" cssStyle="width:120px;" cssClass="editField bar_1" validate="required">
					<form:option value="0" label="--請選擇--" />
					<c:forEach var="lang" items="${CodeLanguage}">
						<form:option value="${lang.code }" label="${lang.name }" />									
					</c:forEach>
				</form:select>
				<span id="show_language" class="showField"></span>
			</td> 
		</tr>								
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">
				<%-- <span style="color:red;font-weight: 600">＊</span> --%>
				<img src="${appPath }/resource/image/1319013350_star_red.png" width="14" height="14" title="欄位必填"/>
				資料類型
			</td> 
			<td style="padding-left: 10px;">
				<form:select path="doc_type" cssStyle="width:200px;" cssClass="editField bar_1" validate="required">
					<form:option value="0" label="--請選擇--" />
					<form:option value="1" label="1) 期刊論文" />
					<form:option value="2" label="2) 圖書/圖書章節" />
					<form:option value="3" label="3) 報告" />
					<form:option value="4" label="4) 會議論文/會議論文集" />
					<form:option value="5" label="5) 學位論文" />
					<form:option value="6" label="6) 手冊/教材" />
				</form:select>
				<span id="show_doc_type" class="showField"></span>
			</td> 
		</tr>	
		
		<!-- 2011/11/23 新增 -->
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">	
				文獻性質
			</td> 
			<td style="padding-left: 10px;letter-spacing: 0px;">
			<%-- 
				<span style="font-family: 'Arial Unicode MS'" class="editField">
					<form:checkbox path="literature" cssClass="literature" value="A" v="original paper" label="&nbsp;original paper" /><br/>
					<form:checkbox path="literature" cssClass="literature" value="B" v="review" label="&nbsp;review" /><br/>
					<form:checkbox path="literature" cssClass="literature" value="C" v="disscussion" label="&nbsp;disscussion" /><br/>
					<form:checkbox path="literature" cssClass="literature" value="D" v="其他" label="其他" onclick="showLiteratureDesc(this);"/>
				</span>
				<span style="padding-left:20px;" class="editField">
					<form:input path="literature_desc" name="literature_desc" cssStyle="width:500px;" disabled="true"/>
				</span>
			--%>
			 	<span style="font-family: 'Arial Unicode MS'" class="editField">
			 		<form:select path="literature" cssStyle="width:120px;" cssClass="editField bar_1" onchange="showLiteratureDesc(this);">
			 			<form:option value="0" label="--請選擇--" />
			 			<form:option value="1" label="original paper" />
			 			<form:option value="2" label="review" />
			 			<form:option value="3" label="disscussion" />
			 			<form:option value="4" label="其他" />
			 		</form:select>
			 		<span style="padding-left:10px;">
			 			<form:input path="literature_desc" name="literature_desc" cssStyle="width:350px;display:none;"/>
			 		</span>
				</span>				
				<span id="show_literature" class="showField" style="font-family: 'Arial Unicode MS'"></span>
			</td> 
		</tr>
		
		<!-- ----------------- -->					
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">原文摘要</td> 
			<td style="padding-left: 10px;">
				<form:textarea path="abstract_o" cssClass="bar_1 editField" cssStyle="width:600px;" rows="5"/>
				<span id="show_abstract_o" class="showField"></span>
			</td> 
		</tr>								
		<!--  
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">中譯摘要</td> 
			<td style="padding-left: 10px;">
				<form:textarea path="abstract_c" cssClass="bar_1 editField" cssStyle="width:400px;" rows="5"/>
				<span id="show_abstract_c" class="showField"></span>
			</td> 
		</tr>
		-->
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">關鍵詞</td> 
			<td style="padding-left: 10px;">
				<form:textarea path="keyword_o" cssClass="bar_1 editField" cssStyle="width:600px;" rows="5"/>
				<span id="show_keyword_o" class="showField"></span>
			</td> 
		</tr>
		
		<!--  
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">中譯關鍵詞</td> 
			<td style="padding-left: 10px;">
				<form:textarea path="keyword_c" cssClass="bar_1" cssStyle="width:400px;" rows="5"/>
			</td> 
		</tr>
		-->								
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">
				<%-- <span style="color:red;font-weight: 600">＊</span> --%>
				<img src="${appPath }/resource/image/1319014160_star_blue.png" width="14" height="14" title="欄位選填"/>
				原文網址
			</td> 
			<td style="padding-left: 10px;">
				<form:input path="url" cssClass="bar_1 editField" cssStyle="width:600px;"/>
				<span id="show_url" class="showField"></span>
			</td> 
		</tr>
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">
				<%-- <span style="color:red;font-weight: 600">＊</span> --%>
				<img src="${appPath }/resource/image/1319014160_star_blue.png" width="14" height="14" title="欄位選填"/>
				原文<!--編號-->
			</td> 
			<td style="padding-left: 10px;">
				<div class="editField" id="_ofiles">
					<input type="file" name="fileData" size="50" id="fileData"/>
					&nbsp;
					<span id="upload_hint">
						<a href="javascript:void(0);" onclick="doAction();">
							<img src="${appPath }/resource/image/1318260696_Upload.png" border="0"/>
						</a>
					</span>
				</div>
				<div id="upload_files_area"></div>										
			</td> 
		</tr>								
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">探討植物別</td> 
			<td style="padding-left: 10px;">
				<span id="span_selectedCodePlants" style="color:green;font-weight: 300;"></span>
				<span style="color:blue;cursor: pointer;" onclick="getCodePlantQuery(null,true);" class="editField">
					選取植物別
					<span id="plantLoadingImg" style="display:none">
						<img src="${appPath }/resource/image/ajax-loader.gif" />
					</span>
				</span>
			</td> 
		</tr>								
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">探討國別</td> 
			<td style="padding-left: 10px;">
				<span id="span_selectedCodeCountries" style="color:green;font-weight: 300;"></span>
				<span style="color:blue;cursor: pointer;" onclick="getCodeCountryQuery(null,true);" class="editField">
					選取國別
					<span id="countryLoadingImg" style="display:none">
						<img src="${appPath }/resource/image/ajax-loader.gif" />
					</span>
				</span>
			</td> 
		</tr>								
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">
				<%-- <span style="color:red;font-weight: 600">＊</span> --%>
				<img src="${appPath }/resource/image/1319013350_star_red.png" width="14" height="14" title="欄位必填"/>
				主題分類<br/>
				<span style="color:red;font-weight: 300">(至多選三項)</span>
			</td> 
			<td style="padding-left: 10px;">
				<div class="editField" id="_clazz">
					<form:checkbox path="clazz" cssClass="clazz" onclick="checkClazz();" value="A" v="生物安全政策與法規" label="生物安全政策與法規" /><br/>
					<form:checkbox path="clazz" cssClass="clazz" onclick="checkClazz();" value="B" v="風險評估與風險管理" label="風險評估與風險管理" /><br/>
					<form:checkbox path="clazz" cssClass="clazz" onclick="checkClazz();" value="C" v="社經與貿易議題" label="社經與貿易議題" /><br/>
					<form:checkbox path="clazz" cssClass="clazz" onclick="checkClazz();" value="D" v="公眾認知、教育與參與" label="公眾認知、教育與參與" /><br/>
					<form:checkbox path="clazz" cssClass="clazz" onclick="checkClazz();" value="E" v="其他" label="其他" />
				</div>
				<span id="show_clazz" class="showField"></span>
			</td> 
		</tr>								
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">研析資料</td> 
			<td style="padding-left: 10px;">
				<span class="editField">
					<form:radiobutton path="analyzed" class="analyzed" value="true" selected="selected"/> 有
					<form:radiobutton path="analyzed" class="analyzed" value="false"/> 無
				</span>
				<span id="show_analyzed" class="showField"></span>
			</td> 
		</tr>
		<!--  
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">被引標題</td> 
			<td style="padding-left: 10px;">
				<form:textarea path="citation_title" cssClass="bar_1" cssStyle="width:400px;" rows="5"/>
			</td> 
		</tr>
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">被引作者</td> 
			<td style="padding-left: 10px;">
				<form:textarea path="citation_author" cssClass="bar_1" cssStyle="width:400px;" rows="5"/>
			</td> 
		</tr>
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">被引出處</td> 
			<td style="padding-left: 10px;">
				<form:textarea path="citation_source" cssClass="bar_1" cssStyle="width:400px;" rows="5"/>
			</td> 
		</tr>					
		-->
		<tr>
			<td colspan="2" style="text-align: center;height:80px;">
				<span class="editField">
					<span class="button_1" style="width:60px;padding: 6px 10px 6px 10px;" onclick="_submit(0);">暫　存</span>								
					<span class="button" style="width:60px;" onclick="_submit(1);">確　認</span> 	
					<span style="display:none">
						<input type="checkbox" />資料強制確認送出
					</span>		
				</span>
				<span class="showField" style="display:none">
					<span class="button" style="width:80px;" onclick="_continue();">新增下一筆</span> 	
				</span>
			</td> 
		</tr>
	</table>
	<form:hidden path="plants_code" />
	<form:hidden path="plants_name_ch" />
	<form:hidden path="countries_code" />
	<form:hidden path="countries_name_ch" />
	<form:hidden path="files" />
	<form:hidden path="flow" /> 
</form:form>
